package cn.pping.org.domain;

import cn.pping.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
* @Description: 员工类
* @Author: Pan
* @Version: 1.0
* @Date:  2022/6/21 19:19
*/

@Data
public class Department extends BaseDomain {

    // 部门编号
    private String sn;
    // 部门名称
    private String name;
    // 上级部门路径
    private String dirPath;
    // 状态 1启用，0禁用
    private Integer state;
    // 部门管理员
    private Long manager_id;
    // 上级部门Id
    private Long parent_id;

    private Employee manager;

    private Department parent;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children = new ArrayList<>();

}
